
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>


// 用C语言使用面对对象思想实现数据结构---位图
typedef unsigned long ul32_t;
typedef ul32_t BitMap_t;
#define BITCOUNT 32

struct BitMapField;
struct BitMapMethod;
struct BitMap;

typedef struct BitMapField BitMapField;
typedef struct BitMapMethod BitMapMethod;
typedef struct BitMap BitMap;
typedef bool (*BitMapMethodPtr_t)(struct BitMapField*,size_t);

extern bool Set(BitMapField*,size_t);
extern bool ReSet(BitMapField*,size_t);
extern bool Test(BitMapField*,size_t);

extern BitMap* CreateBitMap(size_t);
